﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BGCMS.Models.Keyword>" %>
<% using (Html.BeginForm())
   {%>
<%: Html.ValidationSummary(true) %>
<div class="editor-label">
    <label for="Title">
        Titill</label>
</div>
<div class="editor-field">
    <%: Html.TextBoxFor(model => model.Title) %>
    <%: Html.ValidationMessageFor(model => model.Title) %>
</div>
<div class="editor-label">
    <label for="MenuItemID">
        Yfirflokkur</label>
</div>
<div class="editor-field">
    <select id="MenuItemID" name="MenuItemID">
        <option value="1" <%= Model.MenuItemID == 1 ? "selected='selected'" : "" %>>Almennt
            um brjóstabjöf</option>
        <option value="2" <%= Model.MenuItemID == 2 ? "selected='selected'" : "" %>>Fyrstu dagarnir</option>
        <option value="3" <%= Model.MenuItemID == 3 ? "selected='selected'" : "" %>>Algeng vandamál</option>
        <option value="4" <%= Model.MenuItemID == 4 ? "selected='selected'" : "" %>>Næring barna</option>
        <option value="5" <%= Model.MenuItemID == 5 ? "selected='selected'" : "" %>>Þroski barna</option>
        <option value="6" <%= Model.MenuItemID == 6 ? "selected='selected'" : "" %>>Spurt og
            svarað</option>
        <option value="7" <%= Model.MenuItemID == 7 ? "selected='selected'" : "" %>>Fyrir fagfólk</option>
        <option value="8" <%= Model.MenuItemID == 8 ? "selected='selected'" : "" %>>Atburðir</option>
        <option value="9" <%= Model.MenuItemID == 9 ? "selected='selected'" : "" %>>Ýmislegt</option>
        <option value="10" <%= Model.MenuItemID == 10 ? "selected='selected'" : "" %>>Óflokkað</option>
        <option value="11" <%= Model.MenuItemID == 11 ? "selected='selected'" : "" %>>Forsíða</option>
    </select>
</div>
<p>
    <input type="submit" value="Vista" />
</p>
<% } %>